const baseUrl = 'http://43.139.234.245:8900'
const sendUploadFile = (params) => {
    //   console.log(params); 
    return new Promise((resolve, reject) => {
        wx.uploadFile({
            url: baseUrl+params.url,
            filePath: params.filePath,
            name: params.name,
            formData: params.formData,
            success: res => {
                // console.log(res);
                resolve(res)
            },
            fail: err => {
                reject(err)
            }
        })
    })
}
export default sendUploadFile
